import request from '@/utils/request'

export function pagePlaceItem(query) {
  return request({
    url: '/api/admin/checkItem/page',
    method: 'get',
    params: query
  })
}

export function addPlaceItem(obj) {
  return request({
    url: '/api/admin/checkItem',
    method: 'post',
    data: obj
  })
}

export function getPlaceItem(id) {
  return request({
    url: '/api/admin/checkItem/' + id,
    method: 'get'
  })
}

export function delPlaceItem(id) {
  return request({
    url: '/api/admin/checkItem/' + id,
    method: 'delete'
  })
}

export function putPlaceItem(id, obj) {
  return request({
    url: '/api/admin/checkItem/' + id,
    method: 'put',
    data: obj
  })
}

export function delItemContent(id) {
  return request({
    url: '/api/admin/checkContent/' + id,
    method: 'delete'
  })
}

export function itemList(id) {
  return request({
    url: '/api/admin/checkItem/itemList/' + id,
    method: 'get'
  })
}

export function contentList(id) {
  return request({
    url: '/api/admin/checkContent/contentList/' + id,
    method: 'get'
  })
}




export function queryPlaceStandard(id) {
  return request({
    url: '/api/admin/checkItem/queryPlaceStandard/' + id,
    method: 'get'
  })
}

export function itemNumber(id, placeId) {
  return request({
    url: '/api/admin/checkItem/itemNumberValidation',
    method: 'get',
    params: { id, placeId }
  })
}
